package com.tencent.wxcloudrun.repository;

import com.tencent.wxcloudrun.model.ApplyRecord;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.EntityGraph;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface ApplyRecordRepository extends JpaRepository<ApplyRecord, Long>, JpaSpecificationExecutor<ApplyRecord> {

    List<ApplyRecord> findByUserIdAndDeletedFalseOrderByCreatedAtDesc(Long userId); // 只查询未删除的数据

}
